from django import forms

from django.core.exceptions import ValidationError
from video_analysis import models
from web.forms.bootstrap import BootStrap


class listModelForm(BootStrap, forms.ModelForm):
    class Meta:
        #获取数据库内容

        model = models
        fields = ['name', '','','','']
        widgets = {
            'desc': forms.Textarea
        }

    def __init__(self, request, *args, **kwargs):
        super().__init__(*args, **kwargs)
        self.request = request
